<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!--2.内嵌式js-->
    <script>
        // alert('奥利给');
    </script>
    <!-- 3.外部js script双标签 -->
    <script src="my.js"></script>
</head>
<body>
    <!--1.行内式js，直接写到元素内部-->
    <!-- <input type="button" value="唐伯虎" onclick="alert('秋香姐')"> -->
     <!--onclick点击 alert弹出框-->
</body>
</html>